import React from 'react';
import 'ant-design-pro/dist/ant-design-pro.css';
import Bar from 'ant-design-pro/lib/Charts/Bar';

export default class Charts extends React.Component{
    state={}
    render(){
        const salesData = [];
        for (let i = 0; i < 12; i += 1) {
            salesData.push({
                x: `${i + 1}月`,
                y: Math.floor(Math.random() * 1000) + 200,
            });
        }
        return(
            <div>
                <Bar
                height={200}
                title="销售额趋势"
                data={salesData}
                />
            </div>
        );
    }
}